package com.wuxianedu.broadcastreceiver3;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

/**
 * Created by TED on 2016/9/23.
 */
public class LocalReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {

        String et = intent.getStringExtra("et");


        Intent intent1 = new Intent(context, MainActivity.class);
        intent1.putExtra("et",et);
        intent1.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(intent1);
        Log.e("----------","应用内部的广播");
    }
}
